# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=adwaita-icon-theme
pkgver=42.0
pkgrel=0
pkgdesc="Adwaita icon theme"
url="https://gitlab.gnome.org/GNOME/adwaita-icon-theme"
# s390x and riscv64 blocked by librsvg
arch="noarch !s390x !riscv64"
options="!check"  # Icons only, no binaries.
license="LGPL-3.0-or-later OR CC-BY-SA-3.0"
depends="librsvg"
makedepends="intltool gtk+3.0 icon-naming-utils"
subpackages="$pkgname-dev"
source="https://download.gnome.org/sources/adwaita-icon-theme/${pkgver%.*}/adwaita-icon-theme-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--datadir=/usr/share \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install pkgconfigdir=/usr/lib/pkgconfig
}

sha512sums="
521bfd44fdc253f5fd01fcdfaa485669849ad73c35354ccfe9b358ba433cfa40ee6d68b70ec2268a4ce0631a48670b03b30811ca68e2e19f9430082454e02015  adwaita-icon-theme-42.0.tar.xz
"
